package com.info.zhiduoduo.core.filter;

import com.info.zhiduoduo.common.constants.SmartResult;
import com.info.zhiduoduo.common.constants.StatusMsg;
import com.info.zhiduoduo.repository.dto.maker.MakerDetailDto;

/**
 * @author tianyonghong
 * @create 2023/6/19
 */
public class MakerFilterService implements Filter {

    @Override
    public void run(SmartResult result, FilterChain filterChain) {
        MakerDetailDto data = filterChain.getUserData();
        if (data == null) {
            result = SmartResult.fail(StatusMsg.StatusMsg_102);
            return;
        }
    }
}
